package com.zl.customer.pojo;

/**
 * 客户条件类  包装类
 * @ClassName: CustomerCondition
 * @author: suke
 * @since: 2021/7/20 10:42
 */
public class CustomerCondition {
        private Customer customer;
        private int pageIndex; //页码
        private int pageSiez; //页容量
        private int endno;
        private int startno;

        //其他的查询条件


    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSiez() {
        return pageSiez;
    }

    public void setPageSiez(int pageSiez) {
        this.pageSiez = pageSiez;
    }

    public int getEndno() {
        return this.pageIndex*this.pageSiez;
    }

    public int getStartno() {
        return (this.pageIndex-1)*this.pageSiez + 1;
    }
}
